﻿<!--
//*****************************************************************************
//
//  Silver Games - Checkers
//  Copyright © 2009 Randi Relander
//      <rjrelander@users.sourceforge.net>
//
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
//*****************************************************************************
-->

<UserControl x:Class="Checkers.Client.DialogCredits"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="CheckersResources.xaml"/>
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="Transparent">

        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        
        <Rectangle Grid.ColumnSpan="3" Grid.RowSpan="3" x:Name="mBackground" Stroke="#FF40FF00" Width="640" Height="480" StrokeThickness="0" RadiusX="12" RadiusY="12">
            <Rectangle.Fill>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                    <GradientStop Color="#FF000000" Offset="0"/>
                    <GradientStop Color="#FF30C000" Offset="1"/>
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>

        <Grid Grid.Row="1" Grid.Column="1">

            <Rectangle RadiusX="12" RadiusY="12" Stroke="Lime" StrokeThickness="2">
                <Rectangle.Fill>
                    <SolidColorBrush Color="Black" Opacity="0.9" />
                </Rectangle.Fill>
            </Rectangle>

            <StackPanel Margin="10">

                <TextBlock x:Name="mTitle" Text="[title]" FontFamily="Verdana" FontSize="16" 
                Margin="0,0,0,6" Foreground="White" HorizontalAlignment="Center" />

                <TextBlock FontFamily="Verdana" Foreground="White" TextWrapping="Wrap" MaxWidth="350"
                        HorizontalAlignment="Left" Margin="8,0,8,8">
                
                Welcome to Silver Games Checkers. Please note 
                that this is an alpha release. Functionality is
                currently limited to single player versus a simple 
                computer opponent and two player "hot seat" 
                mode. Future releases will add better computer 
                opponents and online multiplayer support.

                </TextBlock>

                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                    <TextBlock FontFamily="Verdana" x:Name="mProduct" Text="[product]" Foreground="White" />
                    <TextBlock FontFamily="Verdana" Text=" " Foreground="White" />
                    <TextBlock FontFamily="Verdana" x:Name="mVersion" Text="[version]" Foreground="White" />
                </StackPanel>

                <TextBlock FontFamily="Verdana" x:Name="mCopyright" HorizontalAlignment="Center" Text="[copyright]" Foreground="White"/>

                <HyperlinkButton Style="{StaticResource HyperButton}" HorizontalAlignment="Center" FontFamily="Verdana" 
                Content="GNU General Public License" NavigateUri="http://www.gnu.org/licenses/" Foreground="Lime"/>

                <StackPanel Margin="0,0,0,8" HorizontalAlignment="Center" Orientation="Horizontal">
                    <TextBlock FontFamily="Verdana" Foreground="White" Text="Visit the "/>
                    <HyperlinkButton Style="{StaticResource HyperButton}" FontFamily="Verdana" 
                    Content="Silver Games Project" NavigateUri="http://sourceforge.net/projects/silvergames/" Foreground="Lime"/>
                    <TextBlock FontFamily="Verdana" Foreground="White" Text=" for details." />
                </StackPanel>

                <Button Style="{StaticResource ButtonStyle}" Margin="2" FontFamily="Verdana" Width="80" Content="OK" x:Name="mOkButton"/>

            </StackPanel>
        
        </Grid>

        <Grid.Resources>

        	<ResourceDictionary>
        		<ResourceDictionary.MergedDictionaries>
        			<ResourceDictionary Source="CheckersResources.xaml"/>
        		</ResourceDictionary.MergedDictionaries>

        		<Storyboard x:Name="mFadeInAnimation">
        			<DoubleAnimation Storyboard.TargetName="LayoutRoot"
        				Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.25" />
        		</Storyboard>

        		<Storyboard x:Name="mFadeOutAnimation">
        			<DoubleAnimation Storyboard.TargetName="LayoutRoot"
        				Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.25" />
        		</Storyboard>

        	</ResourceDictionary>

        </Grid.Resources>

    </Grid>

</UserControl>
